// 获取用户信息
import request from "../request";


export const getUserInfo = async () => {
    const {code,data,msg}= await request.get("user/index");
    if (code!=='A000'){
        console.log('调用失败getUserInfo：',data,msg)
        return {}
    }
    return data
}
export const getAliUserId = async () => {
    const {code,data,msg}= await request.get("user/getAliUserId");
    if (code!==1){
        console.log('调用失败getUserInfo：',data,msg)
        return {}
    }
    return data
}
export const appoint = async (datas) => {
    return await request.post("index/appoint",datas)
}
export const undifinedOrder = async (datas) => {
    return await request.post("index/undifinedOrder",datas)
}
export const getOrder = async (datas) => {
    return await request.post("index/getOrder?type="+datas)
}
export const goPay = async (datas) => {
    return await request.post("index/goPay?id="+datas)
}

//系统设置
export function GetSysInfo() {
    return request.get("sys-info-entity");
}
